"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Transfer_Uint8 = exports.TransferMode = void 0;
var TransferMode;
(function (TransferMode) {
    TransferMode[TransferMode["Read"] = 0] = "Read";
    TransferMode[TransferMode["Write"] = 1] = "Write";
})(TransferMode || (exports.TransferMode = TransferMode = {}));
class Transfer_Uint8 {
    constructor() {
        this.value = 0;
    }
    Transfer(stream, mode) {
        if (mode == TransferMode.Write) {
            stream.WriteByte(this.value);
        }
        else {
            this.value = stream.ReadByte();
        }
    }
}
exports.Transfer_Uint8 = Transfer_Uint8;
